home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / PPC Examples / PPC_Ex_4.s < prev   
Text File  |  1996-06-15  |  575b  |  15 lines

  1.     includeh    ls_ppc_macros.def    *the macros we need
  2.     includeh    general_usage.def    *some handy definitions
  3. **Beginners guide to PowerPC assembly language.
  4. **Example 3 - big loop with floating multiply instruction.
  5. **(C) Lightsoft 1996.
  6. **Program to loop.
  7.     start_up        *the start_up macro as detailed above - sets up the toc etc
  8.     lis    r3,0x0fff    *load fff into upper 16 bits of r3, replaces above two lines
  9.     mtctr    r3
  10. loop:    nop
  11.     fmul    f1,f2,f3    *this time we do some floating maths as well
  12.     bdnz    loop    
  13.     tidy_up            *clear up processors registers and get ready to exit
  14.     blr            *back to system.
  15.